﻿package com.javaPattern.State;

public class Client {
	public static void main(String[] args) {
		Context tool = new Context();
		
		tool.addState("line", new Line());
		tool.addState("circle",new Circle());
		tool.addState("empty", new Empty());
		
		tool.selectState("line");
		tool.action();
		
		tool.selectState("empty");
		tool.action();
		
		tool.selectState("circle");
		tool.action();
	}
}